﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace posttracker.Classes.TypeHelper
{

    public class TrackDataHelper
    {
        public int Id { set; get; }
        public int TrackNumberId { set; get; }
        public int SourceId { set; get; }
        public string XmlDescription { set; get; }
        public string PlaceName { set; get; }
        public string State { set; get; }
        public string DateAdd { set; get; }
        public string DateFromParse { set; get; }

        public TrackNumberHelper TrackNumber { set; get; }
        public SourceHelper Source { set; get; }
    }


    public class UserTrackHelper
    {
        public int Id { set; get; }
        public int UserId { set; get; }
        public int TrackNumberId { set; get; }

        public User User { set; get; }
        public TrackNumberHelper TrackNumber { set; get; }
    }


    public class TrackNumberHelper
    {
        public int Id { set; get; }
        public string Number { set; get; }
        public ICollection<UserTrackHelper> UserTracks { set; get; }
    }


    public class SourceHelper
    {
        public int Id { set; get; }
        public string Name { set; get; }
        public string Url { set; get; }
    }
}